package cn.netbox.springmvc.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * description:
 * date: 2022/3/17 19:42
 * author: Alex
 * version: 1.0
 */
@Controller
@RequestMapping("/goods")
public class GoodsController {
    @RequestMapping(
            value = {"/query","/select","/get"},
            method = {RequestMethod.POST,RequestMethod.GET},
            params = {"name"},
            headers = {"Host=localhost:8080"}
           )
    public String select(String name,String password) {
        System.out.println("姓名:" +name+", 密码" +password);
        return "success";
    }
}
